package com.movitech.mobile.cz.base.bizconfig.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.bizconfig.entity.SStrategicCategory;
import com.movitech.mobile.cz.base.bizconfig.entity.ext.ExtSStrategicCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略需求分类（战略采购分类） Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Component
@Mapper
public interface ExtSStrategicCategoryMapper extends BaseMapper<SStrategicCategory> {

    List<ExtSStrategicCategory> getSpecialityList();

    List<ExtSStrategicCategory> getCategoryList(@Param("parentId") String parentId);

    List<ExtSStrategicCategory> checkName(SStrategicCategory sStrategicCategory);

    long getPageListCount(Map<String, Object> map);

    List<ExtSStrategicCategory> getPageList(Map<String, Object> map);

}
